#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QQuickWidget>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();


    QQuickWidget * w =Q_NULLPTR;

    void InitVirtualKeyboard(QQuickWidget * w);


    void ShowInputMethod(QQuickWidget * w)
    {
        w->show();
    }

    void HideInputMethod(QQuickWidget * w)
    {
        w->close();
    }



private slots:

    bool eventFilter(QObject *obj, QEvent *event);

    void on_Close_clicked();

protected:
    void mousePressEvent(QMouseEvent *ev);

private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
